<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<!DOCTYPE html>
<html lang="zh-CN">

<head>

        <meta charset="utf-8">
        <title>PerMa - Personal Information Manager</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">   

        <!-- CSS -->
        <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=PT+Sans:400,700'>
        <link rel="stylesheet" href="../assets/bootstrap-3.3.4-dist/css/bootstrap.min.css">
        <link rel="stylesheet" href="../assets/font-awesome/css/font-awesome.css">
		<link rel="stylesheet" href="../assets/css/mainRight-style.css">

        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
            <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->


</head>

<body>

		<div class="container main">
			<div class="row">
				<div class="col-md-11">
		    		<div class="contan">
			    		<h5>真实姓名</h5>
						<hr/>
						<s:iterator value="#session.truename" var="truename" status="st">
							<s:if test="#st.index%3==0"><div class="row"></s:if> 
								<div class="col-md-4">
									<div class="thumbnail">
										<img src="../assets/img/figure/name.png">
										<div class="caption">
											<h3>真实姓名</h3>
											<form name="trueName<s:property value="#st.index" />">
												姓：<input type="text" name="trueName.lastName" value="<s:property value="#truename.lastName"/>" placeholder="<s:property value="#truename.lastName"/>"/>
											    名：<input type="text" name="trueName.firstName" value="<s:property value="#truename.firstName"/>" placeholder="<s:property value="#truename.firstName"/>" />
											    <input type="hidden" name="index" value=<s:property value="#st.index" />> 
											    <p>
											    <a href="javascript:modifyTrueName('<s:property value="#st.index" />')" class="btn btn-primary" role="button">修改</a> | 
											    <a href="javascript:deleteTrueName('<s:property value="#st.index" />')" >删除</a>
											     </p>
										     </form>
										</div>
									</div>
								</div>
							<s:if test="#st.index%3==2"></div></s:if>
							<s:if test="#st.last">
								<s:if test="#st.count%3==0"><div class="row"></s:if>
									<div class="col-md-4">
										<div class="thumbnail">
											<img src="../assets/img/figure/plus.jpg">
											<div class="caption">
											    <h3>添加</h3>
											    <form action="addTrueName.action" method="post">
												    姓：<input type="text" name="trueName.lastName"/>
											    	名：<input type="text" name="trueName.firstName"/>
											    	<p><input type="submit" class="btn btn-primary" value="添加" /></p>
										    	</form>
											</div>
										</div>
									</div>
								</div>
							</s:if>
						</s:iterator>
					</div>
		    	</div>
			</div>
		</div>

		
        <!-- Javascript -->
        <script src="../assets/jquery-1.11.1/jquery.js"></script>
        <script src="../assets/jquery-1.11.1/jquery.backstretch.min.js"></script>
        <script src="../assets/bootstrap-3.3.4-dist/js/bootstrap.js"></script>
        <script src="../assets/js/mainRight.js"></script>
</body>

</html>